package com.bluesky.plum.uimodels.standard.components.objectBrowser;

import java.util.List;

import com.bluesky.plum.domain.repository.Repository;

public class SimpleObjectProvider<T> implements ObjectProvider<T> {
	private Repository<T> repo;

	public SimpleObjectProvider(Repository<T> repo) {
		this.repo = repo;
	}

	@Override
	public List<T> list() {

		return repo.getAll();
	}

	@Override
	public com.bluesky.plum.uimodels.standard.components.objectBrowser.ObjectProvider.Paging getPaging() {

		return null;
	}

	@Override
	public void setPaging(
			com.bluesky.plum.uimodels.standard.components.objectBrowser.ObjectProvider.Paging paging) {
		// TODO Auto-generated method stub

	}

}
